PdhCollectQueryData (VB)
The Visual
Basic PdhCollectQueryData
PdhCollectQueryData(
ByVal QueryHandle as Long) |
|
as Long |
|
Parameters
QueryHandle
The ID of the
query to update. This must be a value returned by a call to PdhOpenQuery
Return Values
If the
function succeeds, it returns a Long integer equal to ERROR_SUCCESS.
Note that the function can return successfully, but some or all counters in the
query may not have been updated.
If the function
fails, the return value is a PDH error status defined in PDHDEFS.TXT. The
following are possible error values:
PDH_INVALID_HANDLE
The query
handle is not valid.
PDH_NO_DATA
The query
does not have any counters defined yet.